/*
 * factorial.cpp
 *
 *  Created on: Feb 6, 2015
 *      Author: wajdzik
 */

int factorial(int n){
	int result = 1;
	for (int i = 1; i <= n; i++){
		result *= i;
	}
	return result;
}


